Optimal. Leaf size=29 \[ \log (x+1) (d-e+f)-\log (x+2) (d-2 e+4 f)+f x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {1586, 1657, 632, 31} \[ \log (x+1) (d-e+f)-\log (x+2) (d-2 e+4 f)+f x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 632
Rule 1586
Rule 1657
Rubi steps
\begin {align*} \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{4-5 x^2+x^4} \, dx &=\int \frac {d+e x+f x^2}{2+3 x+x^2} \, dx\\ &=\int \left (f+\frac {d-2 f+(e-3 f) x}{2+3 x+x^2}\right ) \, dx\\ &=f x+\int \frac {d-2 f+(e-3 f) x}{2+3 x+x^2} \, dx\\ &=f x+(d-e+f) \int \frac {1}{1+x} \, dx-(d-2 e+4 f) \int \frac {1}{2+x} \, dx\\ &=f x+(d-e+f) \log (1+x)-(d-2 e+4 f) \log (2+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 30, normalized size = 1.03 \[ \log (x+1) (d-e+f)+\log (x+2) (-d+2 e-4 f)+f x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.95, size = 29, normalized size = 1.00 \[ f x - {\left (d - 2 \, e + 4 \, f\right )} \log \left (x + 2\right ) + {\left (d - e + f\right )} \log \left (x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.25, size = 33, normalized size = 1.14 \[ f x - {\left (d + 4 \, f - 2 \, e\right )} \log \left ({\left | x + 2 \right |}\right ) + {\left (d + f - e\right )} \log \left ({\left | x + 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 45, normalized size = 1.55 \[ -d \ln \left (x +2\right )+d \ln \left (x +1\right )+2 e \ln \left (x +2\right )-e \ln \left (x +1\right )+f x -4 f \ln \left (x +2\right )+f \ln \left (x +1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 29, normalized size = 1.00 \[ f x - {\left (d - 2 \, e + 4 \, f\right )} \log \left (x + 2\right ) + {\left (d - e + f\right )} \log \left (x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 29, normalized size = 1.00 \[ f\,x+\ln \left (x+1\right )\,\left (d-e+f\right )-\ln \left (x+2\right )\,\left (d-2\,e+4\,f\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.51, size = 44, normalized size = 1.52 \[ f x + \left (- d + 2 e - 4 f\right ) \log {\left (x + \frac {4 d - 6 e + 10 f}{2 d - 3 e + 5 f} \right )} + \left (d - e + f\right ) \log {\left (x + 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________